from django.shortcuts import render,HttpResponse
from jilu.models import Content

# Create your views here.
def index(request):
    count = Content.objects.first().count
    return HttpResponse('当前访问量为'+str(count))
#
# def index2(request):
#     count = Content.objects.all().count
#     return HttpResponse('当前访问ip为'+str(count))